<script setup lang="ts">
const clickFn = () => {
    alert('点我干嘛？')
}
 
</script>
<template>
    <button @click="clickFn">点我</button>
    <div class="box" @click="clickColor"></div>
</template>
<style>
    .box{
        background-color: #ec261b;
        width: 200px;
        height: 200px;
    }
</style>
